From: Jasper St. Pierre Date: Fri, 30 Mar 2012 15:15:33 +0000 (-0400) Subject: lookingGlass: Sort introspected property names X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6717 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=348044bc8a65dcef97db97a8adbf0541733cf9dd;p=gnome-shell.git lookingGlass: Sort introspected property names https://bugzilla.gnome.org/show_bug.cgi?id=673187 --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 89d0fa074..44b7d681c 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -400,7 +400,14 @@ const ObjInspector = new Lang.Class({ button.connect('clicked', Lang.bind(this, this.close)); hbox.add(button); if (typeof(obj) == typeof({})) { + let properties = []; for (let propName in obj) { + properties.push(propName); + } + properties.sort(); + + for (let i = 0; i < properties.length; i++) { + let propName = properties[i]; let valueStr; let link; try {